using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Castle.ActiveRecord;
using NHibernate.Expression;

namespace WOODIFramework.Model
{
    [ActiveRecord("BasicPage")]
    public class BasicPage : Page
    {
        #region Fields

        private Guid _basicPageId;

        #endregion

        #region Properties

        [JoinedKey("basicPageID")]
        public Guid BasicPageId
        {
            get { return _basicPageId; }
            set { _basicPageId = value; }
        }

        #endregion

        #region Constructors

        private BasicPage()
        {
            this.Id = Guid.NewGuid();
        }

        
        private BasicPage(string Name)
        {
            this.Id = Guid.NewGuid();
            this.BasicPageId = this.Id;
            this.Name = Name;
        }

        #endregion

        #region Public Methods

        #region Public Static Methods

        public static BasicPage NewBasicPage()
        {
            return new BasicPage();
        }

        public static BasicPage NewBasicPage(string Name)
        {
            return new BasicPage(Name);
        }

        

        #endregion

        #endregion


    }
}
